import request from '@/utils/request'

// 查看算法次数
export function getCountList(params) {
    return request({
      url: '/genius/platform-arithmetic-count/list',
      method: 'get',
      params
    })
  }

  //新增算法次数
  export function addCount(params) {
    return request({
      url: '/genius/platform-arithmetic-count',
      method: 'post',
      data:params
    })
  }

//修改算法次数
  export function modifyCount(params) {
    return request({
      url: '/genius/platform-arithmetic-count',
      method: 'put',
      data:params
    })
  }

  //删除算法次数
  export function delCount(ids) {
    return request({
      url: `/genius/platform-arithmetic-count/${ids}`,
      method: 'delete',
    })
  }

  //查询算法次数详情
  export function getCountInfo(id) {
    return request({
      url: `/genius/platform-arithmetic-count/${id}`,
      method: 'get',
      params: id 
    })
  }